<?php

namespace app\common\model;

use think\Model;

//通用订单类
class Order extends Model
{
    protected $autoWriteTimestamp = true;
    // 定义时间戳字段名
    protected $createTime = 'order_create_time';
    protected $updateTime = 'update_time';


    const PAY_TYPE_NULL      = 0; //未设置付款方式
    const PAY_TYPE_FREE      = 1; //免费无需付款
    const PAY_TYPE_CACHE     = 2; //货到付款
    const PAY_TYPE_ALIPAY    = 10; //支付宝
    const PAY_TYPE_WEIXINPAY = 11; //微信支付

    const ORDER_WAIT_USER_PAY     = 1; //待付款
    const ORDER_WAIT_FOR_DELIVERY = 2; //待发货
    const ORDER_WAIT_USER_RECEIPT = 3; //待收货
    const ORDER_DELIVERY_OK       = 4; //已收货
    const ORDER_COMMENT_OK        = 5; //已评价
    const ORDER_NEGOTATION_OK     = 6; //协商完成
    const ORDER_UNDER_NEGOTATION  = 8; //协商中(退货,换货)
    const ORDER_SHOP_CANCELED     = 9; //店家已取消
    const ORDER_CANCELED          = 10; //已取消
    const ORDER_WAIT_SHOP_ACCEPT  = 11; //等待卖家确认
}
